package org.cuit.echo.seon.observe;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-10
 */
public class WindowDisplay implements Observer {
    private float temperature;
    private float humidity;

    @Override
    public void update(float temperature, float humidity) {
        this.temperature = temperature;
        this.humidity = humidity;
        display();
    }

    public void display() {
        System.out.println("Window Display - Temperature: " + temperature + " Humidity: " + humidity);
    }
}